//
//  xieyiView.m
//  gushihui
//
//  Created by 甘世清 on 2024/1/30.
//

#import "xieyiView.h"

@implementation xieyiView

- (void)SQ_UIViewForSelfView{
    self.backgroundColor = SQColor333333;
    self.layer.cornerRadius = 20;
    self.layer.masksToBounds = YES;
    
    HeaderView * left = [[HeaderView alloc]init];
    left.text = SQNSLocalString(@"隐私协议");
    left.font = FONT_MEDIUM(16);
    left.colorString = @"#FFFFFF";
    left.layer.cornerRadius = 22;
    left.layer.masksToBounds = YES;
    left.layer.borderColor = UIColor.whiteColor.CGColor;
    left.layer.borderWidth = 1;
    [left.btn addTarget:self action:@selector(SQ_password) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:left];
    [left mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self);
        make.top.equalTo(self).offset(30);
        make.width.mas_equalTo(SCREEN_WIDETH-80);
        make.height.mas_equalTo(44);
    }];
    
    HeaderView * bottom = [[HeaderView alloc]init];
    bottom.image = @"矩形 7617";
    bottom.text = SQNSLocalString(@"用户协议");
    bottom.font = FONT_MEDIUM(16);
    bottom.colorString = @"#FFFFFF";
    bottom.layer.cornerRadius = 22;
    bottom.layer.masksToBounds = YES;
    bottom.layer.borderColor = UIColor.whiteColor.CGColor;
    bottom.layer.borderWidth = 1;
    [bottom.btn addTarget:self action:@selector(SQ_password2) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:bottom];
    [bottom mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self);
        make.top.equalTo(self).offset(100);
        make.width.mas_equalTo(SCREEN_WIDETH-80);
        make.height.mas_equalTo(44);
    }];
    
}
-(void)SQ_password{
    CommonWebVcView *vc= [[CommonWebVcView alloc]init];
    vc.urlStr =  YSTK;
    [[Manager SQ_getCurrentViewController].navigationController pushViewController:vc animated:YES];
}
-(void)SQ_password2{
    
    CommonWebVcView *vc= [[CommonWebVcView alloc]init];
    vc.urlStr =  YHXY;
    [[Manager SQ_getCurrentViewController].navigationController pushViewController:vc animated:YES];
}

@end
